﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="nRoute.Samples.Netflix.App"
             xmlns:n="http://nRoute/schemas/2010/xaml">
	
    <Application.ApplicationLifetimeObjects>
        <n:nRouteApplicationService>
            <n:nRouteApplicationService.SiteMapProvider>
                <n:XamlSiteMapProvider>                    
                    <n:SiteMap>
                        <n:SiteMap.RootNode>
                            <n:NavigationNode>
                                <n:NavigationNode Title="Genres" IconPath="Resources/Genres.png"
                                      Url="Content/Netflix/Genres/"/>
                                <n:NavigationNode Title="Movies" IconPath="Resources/Movies.png"
                                      Url="Content/Netflix/Movies/"/>
                                <n:NavigationNode Title="People" IconPath="Resources/People.png"
                                      Url="Content/Netflix/People/"/>
                                <n:NavigationNode Title="About" IconPath="Resources/About.png"
                                      Url="Content/About/"/>
                            </n:NavigationNode>
                        </n:SiteMap.RootNode>
                    </n:SiteMap>
                </n:XamlSiteMapProvider>
            </n:nRouteApplicationService.SiteMapProvider>
		</n:nRouteApplicationService>
    </Application.ApplicationLifetimeObjects>
	
	<Application.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="Resources/CommonResources.xaml"/>				
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Application.Resources>
    
</Application>
